package com.sskj.award.presenter;

import com.lzy.okgo.model.Response;
import com.sskj.award.bean.SuperAbonusBean;
import com.sskj.award.ui.activity.SuperAbonusRecordActivity;
import com.sskj.common.base.HttpData;
import com.sskj.lib.http.JsonCallBack;

import java.util.List;


/**
 * @author Hey
 * Create at  2019/07/18
 */
public class SuperAbonusRecordPresenter extends BasePresenter<SuperAbonusRecordActivity> {

    public void getABonusData() {
        httpService.getABonusData()
                .tag(this)
                .execute(new JsonCallBack<HttpData<SuperAbonusBean>>(this) {
                    @Override
                    public void onSuccess(Response<HttpData<SuperAbonusBean>> response) {
                        SuperAbonusBean data = response.body().getData();
                        mView.getABonusSuccess(data);
                    }

                    @Override
                    public void onFinish() {
                        super.onFinish();
                        mView.onStopFresh();
                    }
                });
    }
}
